import { PageContainer } from "@ant-design/pro-components";
import { history } from "umi";
import VenuePage from "./venue/index";
import StaffPage from "./staff/index";
import { useState } from "react";
const Page = () => {
  const [key, setKey] = useState("1");
  return (
    <PageContainer
      title="放假管理"
      tabList={[
        {
          tab: "场馆放假",
          key: "1",
          children: key == "1" && <VenuePage />,
        },
        {
          tab: "员工休假",
          key: "2",
          children: key == "2" && <StaffPage />,
        },
      ]}
      tabActiveKey={key}
      onTabChange={(e) => {
        setKey(e);
      }}
    ></PageContainer>
  );
};

export default Page;
